package com.kkb.mybatis.config;

import java.util.ArrayList;
import java.util.List;

/**
 * User: zsl
 * Date: 2019/10/1217:38
 * Description:
 */
public class MixedSqlNode implements SqlNode {
    private List<SqlNode> sqlNodes = new ArrayList<SqlNode>();

    public MixedSqlNode(List<SqlNode> sqlNodes) {
        this.sqlNodes = sqlNodes;
    }

    public void apply(DynamicContext dynamicContext) {
        for (SqlNode sqlNode : sqlNodes) {
            sqlNode.apply(dynamicContext);
        }
    }

}
